﻿/*********************弘石项目三组************************
*  功能描述：绩效管理：项目考核业务逻辑层
*  作者：刘伟康
*  时间：2021-12-17
*  修改人：刘伟康
*  修改时间：2021-12-17
*********************弘石项目三组************************/
using Hong.IRepository.IRepository_AssessmentManagement;
using Hong.Model.SysDomain.Model_AssessmentManagement;
using Hong.Model.SysDomain.Model_AssessmentManagement.ViewAssClassAssSmaliProjec;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hong.Business.Business_AssessmentManagement
{
    public class AssProjectABusiness
    {
        #region 构造器注入
        private readonly IAssProjectAssessmen _dal;
        public AssProjectABusiness(IAssProjectAssessmen dal)
        {
            _dal = dal;
        }

        #endregion

        #region 项目考核

        #region 考核任务下拉
        /// <summary>
        /// 考核任务下拉
        /// </summary>
        /// <returns></returns>
        public List<AssessmentList> GetAssessmentList()
        {
            return _dal.GetAssessmentList();
        }
        #endregion

        #region 显示查询考核项目
        /// <summary>
        /// 显示查询考核项目
        /// </summary>
        /// <param name="AssPrjectName"></param>
        /// <param name="AssId"></param>
        /// <returns></returns>
        public List<ViewAssPrjecSmali> GetViewAssPrjecSmali(string AssPrjectName, string AssId)
        {
            return _dal.GetViewAssPrjecSmali(AssPrjectName, AssId);
        }
        #endregion

        #region 设置考核项目
        /// <summary>
        /// 设置考核项目
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int UpdateAssPrjecSmali(string id)
        {
            return _dal.UpdateAssPrjecSmali(id);
        }
        #endregion

        #region 奖金调整
        /// <summary>
        /// 奖金调整
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int UpdateAssPrjec(string id)
        {
            return _dal.UpdateAssPrjec(id);
        }
        #endregion

        #region 小考核项目
        #region 添加
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="ass"></param>
        /// <returns></returns>
        public int AddAssSmaliProjec(AssSmaliProjec ass)
        {
            var i = _dal.AddAssSmaliProjec(ass);
            return i;
        }
        #endregion
        #region 反填
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public AssSmaliProjec GetAssSmaliProjecFT(int id)
        {
            var list = _dal.GetAssSmaliProjecFT(id);
            return list;
        }
        #endregion
        #region 修改
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int PutAssSmaliProjec(AssSmaliProjec ass)
        {

            return _dal.PutAssSmaliProjec(ass);
        }
        #endregion
        #region 删除
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int DelAssSmaliProjec(int id)
        {
            var i = _dal.DelAssSmaliProjec(id);

            return i;
        }
        #endregion
        #region 显示小项目考核
        /// <summary>
        /// 显示小项目考核
        /// </summary>
        /// <returns></returns>
        public List<ViewAssPrjecSmali> GetViewAssClassSmali(string ids)
        {

            return _dal.GetViewAssClassSmali(ids);
        }
        #endregion
        #endregion

        #region 考核分类
        #region 添加
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="ass"></param>
        /// <returns></returns>
        public int AddAssClass(AssClass ass)
        {
            var i = _dal.AddAssClass(ass);
            return i;
        }
        #endregion
        #region 显示
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        public List<ViewAssClasses> GetAssClass(int ids)
        {
            var list = _dal.GetAssClass(ids);

            return list;
        }
        #endregion
        #region 反填
        /// <summary>
        /// 反填
        /// </summary>
        /// <returns></returns>
        public AssClass GetAssClassFT(int id)
        {
            var list = _dal.GetAssClassFT(id);
            return list;
        }
        #endregion
        #region 修改
        /// <summary>
        /// 修改
        /// </summary>
        /// <returns></returns>
        public int PutAssClass(AssClass ass)
        {

            return _dal.PutAssClass(ass);
        }
        #endregion
        #region 删除
        /// <summary>
        /// 删除
        /// </summary>
        /// <returns></returns>
        public int DelAssClass(int id)
        {
            var i = _dal.DelAssClass(id);

            return i;
        }
        #endregion
        #endregion

        #endregion
    }
}
